{% extends 'throw/throw_list.html' %}

{% block content %}

    <form action="{{ url_for('vipadmin.throw_edit', tid=throw_obj.tid) }}" method="post" enctype="multipart/form-data" class="form-horizontal">
    <h2 class="sub-header" style="text-align: center;">模板修改</h2>

        <div class="form-group">
            <label for="temp_name" class="col-sm-1 control-label col-md-offset-2">模板名称</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="temp_name" name="temp_name"
                       placeholder="模板名称" value="{{ data.temp_name.data }}">
            </div>
        </div>

        <div class="form-group">
            <label for="temp_path" class="col-sm-1 control-label col-md-offset-2">模板路径</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="temp_path" name="temp_path"
                       placeholder="模板路径，例如：js_001" value="{{ data.temp_path.data }}">
            </div>
        </div>

        <div class="form-group">
            <label for="path_url" class="col-sm-1 control-label col-md-offset-2">外部链接</label>
            <div class="col-sm-7">
                <input type="text" class="form-control" id="path_url" name="path_url" placeholder="http://img.xxxx.com/" value="{{ data.path_url.data }}">
            </div>
        </div>

        <div class="form-group">
            <label for="throw_tid" class="col-sm-1 control-label col-md-offset-2">投放模板</label>
            <div class="col-sm-7">
                {{ data.types_id }}
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-7">
                <button type="submit" class="btn btn-primary btn-lg btn-block">提交</button>
            </div>
        </div>

        {{ data.csrf_token }}
    </form>
{% endblock %}